//
//  HMSideslipCell.m
//  HomeView
//
//  Created by manman on 16/9/8.
//  Copyright © 2016年 manman. All rights reserved.
//

#import "HMSideslipCell.h"
@interface HMSideslipCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;



@end
@implementation HMSideslipCell

- (void)awakeFromNib {
    [super awakeFromNib];
//    self.selectionStyle = UITableViewCellSelectionStyleNone;
//    self.backgroundColor = [UIColor clearColor];
    self.backgroundColor = [UIColor colorWithWhite:0.5 alpha:0.2];
    self.titleLabel.textColor = [UIColor whiteColor];

    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
//    [self highlightCell:selected];
    // Configure the view for the selected state
}
//- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
//{
//    [super setHighlighted:highlighted animated:animated];
//    [self highlightCell:highlighted];
//
//
//}
//- (void)highlightCell:(BOOL)highlight
//{
//    UIColor *tintColor = [UIColor whiteColor];
//    if(highlight)
//    {
//        tintColor = [UIColor colorWithRed:124 / 255.0 green:125 / 255.0 blue:129 / 255.0 alpha:0.9];
//    
//    }
//    self.titleLabel.textColor = tintColor;
//    self.iconImage.tintColor = tintColor;
//
//}
- (void)setModel:(HMSideslipModel *)model
{

    _model = model;
    self.iconImage.image = [UIImage imageNamed:model.icon];
    self.titleLabel.text = model.title;

}
//标题setter  getter 方法
//- (NSString *)titleText
//{
//    return self.titleLabel.text;
//
//}
//- (void)setTitleText:(NSString *)title
//{
//    self.titleLabel.text = title;
//
//}
//- (UIImage *)image
//{
//    return self.iconImage.image;
//
//}
//- (void)setImage:(UIImage *)image
//{
//    self.iconImage.image =image;
//
//}

@end
